<?php
use think\Route;  
Route::get('/',function(){  
    return 'Hello,这里是卫校微信api接口!';  
});  
// Route::get('news/:id','index/News/read');
// Route::get('news','index/News/readAll');

Route::get('banner','index/Banner/readAll');
Route::get('banner2','index/Banner/readAll2');

Route::get('major/:id','index/Major/read');
Route::get('major','index/Major/readAll');

Route::get('news/:id','index/News/read');
Route::get('news','index/News/readAll');

Route::post('apply/add','index/Apply/add');
Route::post('message/add','index/Message/add');